package com.example.usermanager.tools;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 07 - 26
 * Time:9:05
 */

import lombok.Data;

/***
 * 实现统一的数据封装
 * 定义一个全局的返回对象，每个接口返回时调用此对象进行返回
 *status data mess
 */
@Data
public class ResponseBody<T> {
    //定义返回给前端的字段
    private int status;
    private String message;
    private T data;

    public  ResponseBody(int status,String message,T data){
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
